using System;

namespace TestSystem.DataManipulation
{
    public  class Quote 
    {
        public DateTime Datetime { get; set; }
        public Decimal? Open { get; set; }
        public Decimal? High { get; set; }
        public Decimal? Low { get; set; }
        public Decimal? Close { get; set; }
        public int? Volume { get; set; }
        private Decimal? Price { get; set; }
        private QuoteType QuoteType { get; set; }

        public Quote(DateTime dateTime, Decimal open, Decimal high, Decimal low, Decimal close, Int32 volume)
        {
            Datetime = dateTime;
            Open = open;
            High = high;
            Low = low;
            Close = close;
            Volume = volume;
            QuoteType = QuoteType.Bar;
            Price = null;
        }
        public  Quote(DateTime dateTime, Decimal price, Int32 volume)
        {
            Datetime = dateTime;
            Price = price;
            Volume = volume;
            QuoteType = QuoteType.Tick;
            Open = null;
            High = null;
            Low = null;
            Close = null;
        }
    }
}